package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysChatRoom;

import java.util.Date;

/**
 * 聊天房间业务对象 sys_chat_room
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysChatRoom.class, reverseConvertGenerate = false)
public class SysChatRoomBo extends BaseEntity {

    /**
     * 用户状态ID
     */
    @NotNull(message = "用户状态ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会话最新消息ID
     */
    private Long lastMsgId;

    /**
     * 0:否、1：是
     */
    private boolean showAll;

    /**
     * 房间类型：0：单聊、1：群聊
     */
    private Long roomType;

    /**
     * 会话内消息最后更新的时间(只有普通会话需要维护，全员会话不需要维护)
     */
    private Date activeTime;

    /**
     * 额外消息
     */
    private String extraMsg;

    /**
     * 备注
     */
    private String remark;

}
